//
// Created by Administrator on 2024/11/6.
//

#include "FilesOperator.h"
#include "log.h"


void FilesOperator::create_directories(std::string &dir) {
    std::filesystem::path absolutePath = std::filesystem::absolute(dir);
    LOG("absolutePath :" + std::string(absolutePath));
    if (!fs::exists(dir)) {
        fs::create_directories(dir);
    }
}

void FilesOperator::delete_tmp_files(std::string &dir) {
    return;
    if (fs::exists(dir) && fs::is_directory(dir)) {
        fs::remove_all(dir+"/");
    }
}
